GDK W32: Improve AeroSnap - don't resize windows that fit
authorРуслан Ижбулатов <lrn1986@gmail.com>
Tue, 8 Mar 2016 03:17:09 +0000 (03:17 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Wed, 30 Mar 2016 09:00:02 +0000 (09:00 +0000)
commit2ea96cf9461474d9ffbe8efc64c5946d48441cf4
treeb30d3ad6e4c0d789c92437e34dfdb8cbf68ee4df
parent0ce217cf94c2a0c1c9936daded9dd5b6183cea32
GDK W32: Improve AeroSnap - don't resize windows that fit

This is what AeroSnap does. If a window is being unsnapped on
a new monitor, check if the work area is large enough for the
window to fit in its normal size. If the window fits, just
reposition it so that the ratio of
left-window-edge-to-screen-edge / right-window-edge-to-screen-edge
remains the same, without scaling the window.

https://bugzilla.gnome.org/show_bug.cgi?id=763013
gdk/win32/gdkwindow-win32.c
gdk/win32/gdkwindow-win32.h